/**
 * @Description: 卡片信息模型
 * @author tao.xie
 * @date 2019-02-22
 */

// 金华行卡实例
const CARDTYPE = {
  JHX_BUSCARD: 'jhx_buscard',
  JHX_STAFFCARD: 'jhx_staffcard'
}

// 卡状态
const CARDSTATE = {
  CARD_STATE_DEFAULT: -1,
  CARD_STATE_NOT_OPENED: 0,
  CARD_STATE_APPLYING: 1,
  CARD_STATE_OPEN: 2,
  CARD_STATE_FREEZON: 3
}

class CardInfoModel {
  /**
   * 卡片信息模型
   * @param cardInstanceId
   * @param cardType
   * @param cardName
   * @param state
   * @param cardOwner
   * @param cardNo
   * @param amount
   * @param cardAmount
   * @param finalDiscount
   */
  constructor (cardInstanceId, cardType, cardName, state, cardOwner, cardNo, amount, cardAmount, finalDiscount) {
    this.cardInstanceId = cardInstanceId
    this.cardType = cardType
    this.cardName = cardName
    this.state = state
    this.cardOwner = cardOwner
    this.cardNo = cardNo
    this.amount = amount
    this.cardAmount = cardAmount
    this.finalDiscount = finalDiscount
  }
}

export { CARDSTATE, CARDTYPE, CardInfoModel }
